<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/9/19
 * Time: 15:57
 */
//\Yii::$app->log->targets[0]->logFile = \Yii::getAlias('@runtime').DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR.'mama.log';
//\Yii::warning('1111');
error_reporting(3);
$_GET['r'] = 'mama-pay-notify/index';
// comment out the following two lines when deployed to production

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/../config/web.php');
//\Yii::$app->log->targets[0]->logFile = \Yii::getAlias('@runtime').DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR.'mama.log';
//\Yii::warning($config);
//echo 1111;
(new yii\web\Application($config))->run();
